<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    button {
      width: 120px;
      height: 60px;
      line-height: 60px;
      text-align: center;
      font-size: 30px;
      animation: throttle 2s step-end forwards;
    }

    button:active {
      animation: none;
    }

    @keyframes throttle {
      from {
        color: #f00;
        pointer-events: none;
      }

      to {
        color: yellowgreen;
        pointer-events: all;
      }
    }
  </style>
</head>

<body>
  <button onclick="console.log(1);">按钮</button>
</body>

</html>